php forum
php mysql forum
php mysql smarty
 
Topic Options
#312332 - 12/25/06 03:07 AM [7.x] [Beta] Increase # of subforum displayed
Ian_W Offline

Veteran

Registered: 02/22/02
Posts: 2575
Loc: England
Hi,

If you wish to increase the number of subforums being displayed on the main forum list....

Edit \scripts\cfrm.inc.php

Change

if ($count > 3) break;

to

if ($count > 10) break;

Or whatever figure you require. The number displayed will be 1 higher than the number above.

Mine is 70 - but then I am not normal wink
_________________________
Fans Focus - Focusing on Fans of Sport

(Okay - mainly football (the British variety wink at the moment - but expanding all the time....)

Top
#312334 - 12/25/06 04:01 AM Re: [7.x]To increase number of subforums displaying... [Re: Ian_W]
Gizmo Offline

Wizard

Registered: 01/10/00
Posts: 5354
Loc: Portland, OR, USA
Keep in mind, in logical terms 0 is a number, thus 0 = 1; so it's not nessessarily one more than the inputted number, simply your number +1 wink...

I didn't even realise that there was such a check built in; but then again I don't use subforums much frown
_________________________
UBB.Dev - Where you too can render your UBB install completely useless...
UGN Security, Elite Web Gamers & VNC Web Design & Development President
UBB.Threads: My UBBSkins, UBB.Sitemaps

Top
#312338 - 12/25/06 10:24 AM Re: [7.x]To increase number of subforums displaying... [Re: Ian_W]
AllenAyres Offline

I type Like navaho

Registered: 03/10/00
Posts: 25580
Loc: Texas
Thanks Ian smile
_________________________
- Allen wavey
- What Drives You?

Top
#313275 - 02/25/07 07:58 PM Re: [7.x]To increase number of subforums displaying... [Re: AllenAyres]
Mark_S Offline
Power User

Registered: 11/15/03
Posts: 86
Loc: UK
Works for me 7.1 smile

Top
#313296 - 02/28/07 09:45 AM Re: [7.x]To increase number of subforums displaying... [Re: Mark_S]
Mark_S Offline
Power User

Registered: 11/15/03
Posts: 86
Loc: UK
7.1

It works as expected on the main forum page,
but if your subforums have more than 4 subforums they dont show?

Main Page as Ian says
Edit \scripts\cfrm.inc.php

Its about line 396
No need to change the '3' a few lines further down as that
only changes when ....... (dots will be displayed.)


==================================
Changing the sub sub forums Display
Edit \scripts\postlist.inc.php
Line : 352

if ($count > 3) break;
Change to if ($count > 5) break;

Now 6 sub sub forums show up instead of only 4

0 is equal to 1 wink
0,1,2,3,4,5 = 6

Working fine for me.

Top
#313298 - 03/01/07 05:04 AM Re: [7.x]To increase number of subforums displaying... [Re: Mark_S]
Ian_W Offline

Veteran

Registered: 02/22/02
Posts: 2575
Loc: England
Oh okay - thanks.

None of my sub-forums have more than 2 sub-forums - so didn't pick this up smile

_________________________
Fans Focus - Focusing on Fans of Sport

(Okay - mainly football (the British variety wink at the moment - but expanding all the time....)

Top



Moderator:  sirdude 
Latest Posts
[7.2.1] - Naked shoutbox
by bellaonline
05/05/12 05:00 PM
[7.x] Stop Forum Spam Integration v0.4
by bellaonline
05/05/12 03:53 PM
Shout Box

(Views)Popular Topics
Known public proxy servers 1689885
Integrated Index Page (IIP) 5.3.1 555705
Finished-[6.5.2] Games Arcade Deluxe v1.9 501236
Integrated Index Page (IIP) 5.1.1 415112
TLD Bv2.1 Released - Threads Links Directory 396822
[6.0x] Who's Online 4.0.0 [Finished] 389412
Finished-[6.5.1] Integrated Index Page (IIP) 6.5 330423
Q & A 298663
Slash UBB 266936
[6.3.x] [beta] Hit Hack 2.0 227970
Forum Stats
13621 Members
59 Forums
37191 Topics
295716 Posts

Max Online: 686 @ 06/28/07 07:04 AM

 

 

 
fusionbb message board php hacks